package com.zhima.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhima.entity.OjRole;
import com.zhima.entity.OjUserRole;
import com.zhima.mapper.OjUserRoleMapper;
import com.zhima.service.OjUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zhima
 * @since 2023-08-23
 */
@Service
public class OjUserRoleServiceImpl extends ServiceImpl<OjUserRoleMapper, OjUserRole> implements OjUserRoleService {
    @Autowired
    private OjUserRoleMapper ojUserRoleMapper;

    @Override
    public List<OjRole> queryUserRole(Long userId) {
        return ojUserRoleMapper.queryUserRole(userId);
    }
}
